<?php
global $setting;
?>
<style>
.ui.main.container {
	padding-top: 2cm;
}
</style>
<script type="text/javascript">
var onFocus = false;
$(document).ready(function(){
	$(".hz_home").addClass("active");
	$('.ui.accordion').accordion();
	home_data = JSON.parse($(".s_temple_setting.home_head").html());
	if(home_data.isOwner)
		$(".s_owner_list_entry").click();
	else
		$(".s_guest_list_entry").click();
	if(home_data.request!=null){
		mainPageLoad(dealURL(home_data.request));	
	}
});
function mainPageLoad(url){
	loadPage(url);
	$("#s_z_ajax_container").load(url);
}
function mainPageComeBack(){
	console.log(getLastPage());
	mainPageLoad(getLastPage());
}
</script>
<h1 class="ui header">家园</h1>
<?php loadTemp("home/header/general_header_home.php");?>
<div style="padding-top: 1cm;">
	<div class="ui grid">
		<div class="row">
			<div class="four wide column s_shrink">
				<div class="ui card">
					<img class="ui centered small image s_target_head">
					<div class="content">
						<a class="header s_target_name_href"></a>
						<div class="description s_target_motto"></div>
					</div>
				</div>
				<table class="ui celled table">
					<thead>
						<tr>
							<th>个人信息</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td>
								姓名：
								<span class="s_target_name"></span>
							</td>
						</tr>
						<tr>
							<td>
								性别：
								<span class="s_target_gender"></span>
							</td>
						</tr>
						<tr>
							<td>
								用户类型：
								<span class="s_target_user_type_chinese"></span>
							</td>
						</tr>
						<tr>
							<td>
								格言：
								<span class="s_target_motto"></span>
							</td>
						</tr>
						<tr>
							<td>
								自我介绍：
								<span class="s_target_introduce"></span>
							</td>
						</tr>
						<tr>
							<td>
								唯一用户id：
								<span class="s_target_uid"></span>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
			<div class="column s_phone_twelve_to_sixteen">
				<div class="ui top attached tabular menu">
					<a class="item s_ajax_entry s_ajax_entry default s_l_a_main_entry" url="index.php?mod=home&childmod=home&ajax=true&op=activity_list&uid=<?php print_hm_uid();?>" targetid="s_z_ajax_container">动态列表 </a>
					<a class="item owner_only s_ajax_entry" url="index.php?mod=home&childmod=home&ajax=true&op=view_activity_send" targetid="s_z_ajax_container">动态发表 </a>
					<a class="item s_ajax_entry" url="index.php?mod=home&childmod=home&ajax=true&op=detial_profile&uid=<?php print_hm_uid()?>" targetid="s_z_ajax_container">个人资料</a>
				</div>
				<div class="ui attached segment s_ajax_container" id="s_z_ajax_container"></div>
			</div>
		</div>
	</div>
</div>
<div class="ui modal s_image_updater"></div>